repo.or.cz
/
andmenj-acm.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
11336 - DRM (Maratón colombiana, grafos, DFS, fuerza bruta)
[andmenj-acm.git]
/
10110 - Light, more light
/
10110-2.cpp
blob
733a0f832e09ef62dc32074a2f387340ce3f364c
1
#include <stdio.h>
2
3
int
main
()
4
5
{
6
unsigned int
num
,
i
,
j
;
7
char
step
;
8
9
scanf
(
"%d"
,&
num
);
10
11
while
(
num
!=
0
)
12
{
13
step
=
0
;
14
i
=
4
;
15
j
=
5
;
16
17
while
(
num
>
i
&&
i
>
0
)
18
{
19
i
+=
j
;
20
j
+=
2
;
21
}
22
23
if
(
num
==
i
)
printf
(
"yes
\n
"
);
24
else
printf
(
"no
\n
"
);
25
scanf
(
"%d"
,&
num
);
26
}
27
28
return
0
;
29
}